package com.lan.model.symbol;

import com.lan.model.Type;
import org.antlr.v4.runtime.ParserRuleContext;

public class Block extends Scope implements Type {

    public Block(String name, Scope scope, String id,ParserRuleContext ctx) {
        this.name = name;
        this.scope = scope;
        this.id = id;
        this.ctx = ctx;
    }

    public Block(Scope scope, String id) {
        this.scope = scope;
        this.id = id;
    }


    @Override
    public boolean isType(Type type) {
        if (this == type) return true;
        return false;
    }


    @Override
    public String toString() {
        return "Block " + name;
    }

}